package org.jeecg.modules.iot.common;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * 这里是一个注释
 *
 * @author scw
 * @version v1.0
 * @date
 */
public class IotConst {

    /**
     * 发送消息的到topic
     * 第一个参数  productKet
     * 第二个参数 设备名称（统一用deviceMac）
     */
    public static String topic_get = "/%s/%s/user/get";
    public static String topic_heart = "/%s/%s/user/heart";

    public static final String SEND_CHECK ="{\"cmd\":\"check\"}";
    public static final String SEND_CHECK_LOG ="{\"cmd\":\"check_log\"}";
    public static final String SEND_CHECK_ALL ="{\"cmd\":\"check_all\"}";
    public static final String SEND_PUISH_VERSION_PUBLISH ="{\"cmd\":\"push_version_publish\"}";
    public static final String SEND_POPUP_SN = "{\"cmd\":\"popup_sn\",\"data\":\"%s\"}";
    public static final String SEND_POPUP_HOLE = "{\"cmd\":\"popup\",\"data\":\"%s\",,\"io\":\"%s\"}";
    public static final String SEND_POPUP_HOLE_KEY = "%s_%s";


    /**
     * 设备二维码ID+轮巡充数
     */
//    public final static AtomicInteger ID_ATOMIC = new AtomicInteger(10000);
    public static AtomicInteger ID_ATOMIC = null;

//    public static void main(String[] args) {
//        for(int i=1;i<10;i++){
//            String id = ID_ATOMIC.incrementAndGet()+""+i;
//            System.out.println(id);
//        }
//    }

}
